import pytest
import time
import os

if __name__ == '__main__':
    start_time = time.time()
    pytest.main()
    os.system(r"allure generate .\report\jsonreport -o .\report\my_html --clean")
    end_time = time.time()
    print("测试用例运行耗时：",end_time-start_time)